Commenting Code Blocks
Code Editor lets you comment and uncomment entire code blocks with a single command. Applies only to NC files and Mastercam VBScript.
VBScript and the VBScript Manager have been deprecated and will be completely removed from Mastercam 2024. We recommend that you convert your VBScripts to Mastercam NET-Scripts. If you need assistance, contact SDK@mastercam.com.
- Highlight the code lines to comment.
-
Right-click in the highlighted area. A pop-up menu displays.
-
Choose Comment from the pop-up menu. Code Editor adds a comment-delimiter character to each highlighted line.
When you choose Uncomment from the pop-up menu, Code Editor removes the comment character from all of the selected lines.





